package com.zzx.shiro.service.impl;

import com.zzx.shiro.dao.UserDao;
import com.zzx.shiro.entity.User;
import com.zzx.shiro.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (User)表服务实现类
 *
 * @author makejava
 * @since 2021-09-15 15:14:41
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserDao userDao;

    /**
     * <p>根据用户名获取用户对象</p>
     * @param username
     * @return com.zzx.shiro.entity.User
     * @author zhouzhixin
     * @date 2021/9/15 17:42
     */
    @Override
    public User queryByUserName(String username) {
        return userDao.queryByUserName(username);
    }
}
